-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hotfix] Fix Service account typo #285
[hotfix] Fix Service account typo #285
Conversation
I'd propose banning the plural in English. |
@@ -54,7 +54,7 @@ rules: | |||
- apiGroups: | |||
- "" | |||
resources: | |||
- serviceaccount | |||
- serviceaccounts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this change? serviceaccount
should be correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we need serviceaccount
, we should update code
// +kubebuilder:rbac:groups=core,resources=serviceaccount,verbs=get;list;watch;create;delete |
// +kubebuilder:rbac:groups=core,resources=serviceaccount,verbs=get;list;watch;create;delete |
Change serviceaccount
to serviceaccounts
and make manifest to auto generate role.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out the plural form is the correct way to specify the resource name (compare to "pods" and "services" elsewhere in this file).
With "serviceaccount" (singular) it fails to grant the necessary permissions (which are used only to set up the autoscaler's service account)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we need
serviceaccount
, we should update code
Thanks for pointing that out!! Will do.
One apple, ten apple. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this typo.
Fixes a typo in the operator's role that prevents it from managing service accounts, which in turn blocks setup of autoscaling Ray clusters.
Why are these changes needed?
Fixes a typo in the operator's role that prevents it from managing service accounts, which in turn blocks setup of autoscaling Ray clusters.
TODO: How to test??
Related issue number
Checks